﻿using RaceHFTools.Pages.Tweak;
using RaceHFTools.BluetoothLE.Bean;
using System;

using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace RaceHFTools.Pages
{
    [XamlCompilation(XamlCompilationOptions.Compile)]
    public partial class TweakPage : ContentPage
    {
        private readonly Bean bean;

        public TweakPage(Bean bean)
        {
            InitializeComponent();

            this.bean = bean;
        }

        protected override void OnAppearing()
        {
            base.OnAppearing();
        }

        void Button_TweakUser_Clicked(object sender, EventArgs e)
        {
            Navigation.PushAsync(new TweakUserPage(bean));
        }

        void Button_TweakPro_Clicked(object sender, EventArgs e)
        {
            Navigation.PushAsync(new TweakProPage(bean));
        }

        void Button_TweakRecord_Clicked(object sender, EventArgs e)
        {
            Navigation.PushAsync(new TweakRecordPage(bean));
        }

        void Button_TweakGnss_Clicked(object sender, EventArgs e)
        {
            Navigation.PushAsync(new TweakGnssPage(bean));
        }

        void Button_TweakGsensor_Clicked(object sender, EventArgs e)
        {
            Navigation.PushAsync(new TweakGsensorPage(bean));
        }

        void Button_TweakSdcard_Clicked(object sender, EventArgs e)
        {
            Navigation.PushAsync(new TweakSdcardPage(bean));
        }
    }
}